package pro;

public abstract class PrototypeFruit extends Fruit implements Cloneable {
    @Override
    public PrototypeFruit clone() {
        try {
            return (PrototypeFruit) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new AssertionError(); // 不会发生
        }
    }
}